package com.getword.mongodao;

import com.getword.domain.User;
import com.getword.web.model.UserQueryCondition;
import com.mongodb.client.result.UpdateResult;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface UserOperations {
    /**
     * 动态更新
     * @param user
     * @return
     */
    UpdateResult updateUser(User user);
    Page<User> findAllPage(Pageable page, UserQueryCondition condition);
}
